#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

import json

child_node = {}
attribute_node = {}
content_list = {}

for i in xrange(1,368):
    ss="pmc_id_"+str(i)+".json"
    f=file(ss)
    s=json.load(f)
    f.close()

    for item in s["child_node"]:
        if not child_node.has_key(item):
            child_node[item]={}
        for item2 in s["child_node"][item]:
            child_node[item][item2]=0
    for item in s["attribute_node"]:
        if not attribute_node.has_key(item):
            attribute_node[item]={}
        for item2 in s["attribute_node"][item]:
            attribute_node[item][item2]=0
    for item in s["content_list"]:
        content_list[item]=0

for item in child_node.keys():
    print item + "====",
    for item2 in child_node[item].keys():
        print item2 + ";",
    print
print
for item in attribute_node.keys():
    print item + "====",
    for item2 in attribute_node[item].keys():
        print item2 + ";",
    print
print
for item in content_list.keys():
    print item